var async = require("async");

async.waterfall(
    [
        function(callback){
            callback(null, "param1");
        },
        function(args, callback){
            console.log(args);
            callback(null, "param2");
        }
    ],
    function(err, result) {
        console.log(result);
    }
)